package com.java.zhuiyun.api.order.service;

import com.java.zhuiyun.api.order.entity.Orders;
import com.java.zhuiyun.api.order.model.OrderModel;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;

/**
 * @InterfaceName OrderService
 * @Description TODO
 * @Author wuwan
 * @Date 2023/8/25 9:48
 **/
public interface OrderService {
    /*
    * @Author wuwan
    * @Description 订单生成
    * @Date 2023/8/28 10:56
    * @Return
    * @param null
    */
    CommonResult orderAddition(OrderModel order);
    /*
    * @Author wuwan
    * @Description 订单数据查询
    * @Date 2023/8/28 10:56
    * @Return
    * @param null
    */
    PageResult selectOrders(PageRequest pageRequest);
    /*
     * @Author wuwan
     * @Description 用户课程减免
     * @Date 2023/8/29 10:46
     * @Return
     * @param null
     */
    CommonResult selectUserCourseData(Integer uid, Integer cid);
    /*
    * @Author wuwan
    * @Description 查询实际支付价格
    * @Date 2023/8/30 11:17
    * @Return
    * @param null
    */
    CommonResult selectUserCourse(Integer uid, Integer cid);
    /*
    * @Author wuwan
    * @Description 定时任务删除未付款订单信息
    * @Date 2023/8/30 19:54
    * @Return
    * @param null
    */
    Integer updateOrder();

    /*
     * @Author WX
     * @Description 查询单个记录
     * @Date 2023/9/2 10:45
     * @Return
     * @param null
     */
    Orders selectByTwoId(Integer uid, Integer cid);

    CommonResult selorder(Integer cid, Integer uid);
}
